package data;

public class Task
{
    private int taskID;
    private int urgency;
    private int emergencyLevel;
    private int date;
    private int time;
    private String location;
    private String description;
    private int numResource;
    private String[] resource;

    // constructors

    public Task()
    {

    }

    public Task(int taskID, int urgency, int emergencyLevel, int date, int time, String location, String description)
    {
        this.taskID = taskID;
        this.urgency = urgency;
        this.emergencyLevel = emergencyLevel;
        this.date = date;
        this.time = time;
        this.location = location;
        this.description = description;
    }

    // getters

    public int getTaskID()
    {
        return taskID;
    }

    public int getUrgency()
    {
        return this.urgency;
    }

    public int getEmergencyLevel()
    {
        return this.emergencyLevel;
    }

    public int getDate()
    {
        return this.date;
    }

    public int getTime()
    {
        return this.time;
    }

    public String getLocation()
    {
        return this.location;
    }

    public String getDescription()
    {
        return this.description;
    }

    public int getNumResource()
    {
        return this.numResource;
    }

    public String getResource(int i)
    {
        return this.resource[i];
    }

    // setters
    
    public void setTaskID(int taskID)
    {
        this.taskID = taskID;
    }

    public void setUrgency(int urgency)
    {
        this.urgency = urgency;
    }

    public void setEmergencyLevel(int emergencyLevel)
    {
        this.emergencyLevel = emergencyLevel;
    }

    public void setDate(int date)
    {
        this.date = date;
    }

    public void setTime(int time)
    {
        this.time = time;
    }

    public void setLocation(String location)
    {
        this.location = location;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public void setNumResource (int numResource)
    {
        this.numResource = numResource;
        this.resource = new String[numResource];
    }

    public void setResource(int i, String resource)
    {
        this.resource[i] = resource;
    }
}
